package libofei.controller.index;

import libofei.common.controller.BaseController;
import libofei.entity.user.User;
import org.springframework.http.HttpRequest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@Controller
public class IndexController extends BaseController {

    private static final String INDEX = getViewPath("_index");//网站首页
    private static final String SERVICE = getViewPath("services");//网站服务
    private static final String PORTFOLIO = getViewPath("portfolio");//网站短句
    private static final String ARTICLE = getViewPath("short-codes");//网站文章
    private static final String ABOUTUS = getViewPath("mail");//关于我们


    @RequestMapping("/")
    public String index() { return INDEX; }

    @RequestMapping("/index")
    public String helloWorld() { return INDEX; }

    @RequestMapping("/service")
    public String service(){ return SERVICE; }

    @RequestMapping("/short/code")
    public String portfolio(){ return PORTFOLIO; }


    @RequestMapping("/article")
    public String article(){ return ARTICLE; }

    @RequestMapping("/about/us")
    public String aboutUs(){ return ABOUTUS; }


}
